package abcy.cloud.syscoreserver.mappers;

import abcy.cloud.syscoreserver.dto.req.SysRoleSelectReqDto;
import abcy.cloud.syscoreserver.dto.resp.SysRoleSelectRespDto;
import abcy.cloud.syscoreserver.entities.SysRole;
import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRoleSelectRespDto> getRolesForPage(@Param("req")SysRoleSelectReqDto sysRoleSelectReqDto);

    String selectMaxRoleCode();

    List<SysRoleSelectRespDto> selectRolesByUserId(@Param("userId")String userId);

}